/*
 * Selling Partner API for Orders
 *
 * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools.   _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don't show up in the response).
 *
 * The version of the OpenAPI document: v0
 * Generated by: https://github.com/openapitools/openapi-generator.git
 */


using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.IO;
using System.Runtime.Serialization;
using System.Text;
using System.Text.RegularExpressions;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = software.amzn.spapi.Client.OpenAPIDateConverter;

namespace software.amzn.spapi.Model.orders.v0
{
    /// <summary>
    /// The container for address extended fields (such as &#x60;street name&#x60; and &#x60;street number&#x60;). Currently only available with Brazil shipping addresses.
    /// </summary>
    [DataContract(Name = "AddressExtendedFields")]
    public partial class AddressExtendedFields : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="AddressExtendedFields" /> class.
        /// </summary>
        /// <param name="streetName">The street name..</param>
        /// <param name="streetNumber">The house, building, or property number associated with the location&#39;s street address..</param>
        /// <param name="complement">The floor number/unit number in the building/private house number..</param>
        /// <param name="neighborhood">The neighborhood. This value is only used in some countries (such as Brazil)..</param>
        public AddressExtendedFields(string streetName = default(string), string streetNumber = default(string), string complement = default(string), string neighborhood = default(string))
        {
            this.StreetName = streetName;
            this.StreetNumber = streetNumber;
            this.Complement = complement;
            this.Neighborhood = neighborhood;
        }

        /// <summary>
        /// The street name.
        /// </summary>
        /// <value>The street name.</value>
        [DataMember(Name = "StreetName", EmitDefaultValue = false)]
        public string StreetName { get; set; }

        /// <summary>
        /// The house, building, or property number associated with the location&#39;s street address.
        /// </summary>
        /// <value>The house, building, or property number associated with the location&#39;s street address.</value>
        [DataMember(Name = "StreetNumber", EmitDefaultValue = false)]
        public string StreetNumber { get; set; }

        /// <summary>
        /// The floor number/unit number in the building/private house number.
        /// </summary>
        /// <value>The floor number/unit number in the building/private house number.</value>
        [DataMember(Name = "Complement", EmitDefaultValue = false)]
        public string Complement { get; set; }

        /// <summary>
        /// The neighborhood. This value is only used in some countries (such as Brazil).
        /// </summary>
        /// <value>The neighborhood. This value is only used in some countries (such as Brazil).</value>
        [DataMember(Name = "Neighborhood", EmitDefaultValue = false)]
        public string Neighborhood { get; set; }

        /// <summary>
        /// Returns the string presentation of the object
        /// </summary>
        /// <returns>String presentation of the object</returns>
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();
            sb.Append("class AddressExtendedFields {\n");
            sb.Append("  StreetName: ").Append(StreetName).Append("\n");
            sb.Append("  StreetNumber: ").Append(StreetNumber).Append("\n");
            sb.Append("  Complement: ").Append(Complement).Append("\n");
            sb.Append("  Neighborhood: ").Append(Neighborhood).Append("\n");
            sb.Append("}\n");
            return sb.ToString();
        }

        /// <summary>
        /// Returns the JSON string presentation of the object
        /// </summary>
        /// <returns>JSON string presentation of the object</returns>
        public virtual string ToJson()
        {
            return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
        }

        /// <summary>
        /// To validate all properties of the instance
        /// </summary>
        /// <param name="validationContext">Validation context</param>
        /// <returns>Validation Result</returns>
        IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
        {
            yield break;
        }
    }

}
